home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- #
- # build a new ID database file
- #
- # Usage: syms.id [src-list]
- # Where src-list is a file containing full pathnames of all files to analyze.
- # The default is "./SRCFILES". The database will be placed in the same
- # directory as src-list.
- #
-
- #
- # Make sure an input list file was specified
- #
- SrcList=${1:-SRCFILES}
- BaseDir=`dirname $SrcList`
-
- #
- # Switch to the base directory
- #
- cd $BaseDir
-
- #
- # Remove the old database file
- #
- rm -f ID
-
- #
- # Generate the actual ID database file
- #
- echo "Generating ID database file..."
- sed -e "s%^$BaseDir/%%" \
- $SrcList \
- | sort -u | mkid
-
-